package com.example.aop;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @Date 2022/1/27
 * @Created by Jonathan
 */
public class AopMain {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);
		UserService userService = (UserService)context.getBean("userService");
		userService.register();
	}
}
